@extends('layouts.admin')
@section('control_name', $control_name)
@section('content')
    <div class="layui-form" lay-filter="layuiadmin-app-list" id="layuiadmin-app-form-list"
         style="padding: 20px 30px 0 0;">
        <input type="hidden" name="id" value="{{ $info->id }}">
        <div class="layui-form-item">
            <label class="layui-form-label">管理账号</label>
            <div class="layui-input-inline">
                <select name="admin_id" disabled="disabled">
                    @foreach($admin_user as $ak=>$av)
                        <option value="{{ $ak }}" @if($ak == $info->admin_id) selected @endif>{{ $av }}</option>
                    @endforeach
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">用户名</label>
            <div class="layui-input-inline">
                <input type="text" name="username" lay-verify="required" placeholder="请输入用户名" autocomplete="off" value="{{ $info->username }}"
                       class="layui-input">
            </div>
            <div class="layui-form-mid layui-word-aux">登录时的账号</div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">客户名称</label>
            <div class="layui-input-inline">
                <input type="text" name="admin_name" lay-verify="required" placeholder="请输入客户名称" autocomplete="off"
                       class="layui-input"  value="{{ $info->admin_name }}">
            </div>
            <div class="layui-form-mid layui-word-aux">期货市场中的客户名称</div>
        </div>
        <div class="layui-form-item layui-hide">
            <input type="button" lay-submit lay-filter="layuiadmin-app-form-add" id="layuiadmin-app-form-add"
                   value="确认添加">
            <input type="button" lay-submit lay-filter="layuiadmin-app-form-edit" id="layuiadmin-app-form-edit"
                   value="确认编辑">
        </div>
    </div>
@endsection

@section('footer')
@endsection

@section('script')
    <script>
        layui.config({
            base: "/static/layuiadmin/"
        }).extend({
            index: 'lib/index'
        }).use(['index', 'table'], function () {
            var $ = layui.$
                , form = layui.form;
        });
    </script>
@endsection
